package com.ex1;

public class Counter {

	private long value=0;
	
	public synchronized long getValue(){
		return value;
	}
	
	public synchronized long increment(){
		return ++value;
	}
}
